<?php
// +----------------------------------------------------------------------
// | 杭州十禾信息科技有限公司
// +----------------------------------------------------------------------
// | Copyright (c) 2013-2015 http://www.shelpe.com All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: LeePuman <ysyzlsm@163.com>
// +----------------------------------------------------------------------

/**
 * 直通车报表数据API
 */

class RptAdgroupModel extends RptBaseModel {

	protected $tableName = 'rpt_adgroup';
	/** @var object */
	private $me = null;
	/** @var object */
	private $subwayToken = null;

	/**
	 * 初始化。主要检查session['me']。
	 *
	 */
	public function _initialize() {
		parent :: _initialize();
		$this->me = session('me');
	}
	
	public function getAllAdgroupStat($user_id , $adgroup_id, $indicators, $from = null, $to = null, $types='summary,series', $sort) {
	    //check sync status
		return $this->getStats($user_id, $adgroup_id,
				$indicators, $from, $to, $types, $sort);
	}
}
